TInstanceRenderable Class Reference
[Data Structures]

Inheritance diagram for TInstanceRenderable:

TCountedRenderable TMCSMPCountedObject I3DShRenderable IMCUnknown IMCUnknown List of all members.

Public Member Functions

void SetInstance (I3DShInstance *instance)
TRenderableFlags MCCOMAPI GetRenderableFlags () const
MCCOMErr MCCOMAPI SetRenderableFlags (const TRenderableFlags flags)
I3DShRenderable::EType MCCOMAPI GetGeometryType () const
MCCOMErr MCCOMAPI GetFMesh (real lod, FacetMesh **amesh)
virtual void MCCOMAPI GetBoundingBox (TBBox3D &bb)
uint32 MCCOMAPI GetUVSpaceCount ()
MCCOMErr MCCOMAPI GetInstance (I3DShInstance **instance)
I3DShInstance *MCCOMAPI GetInstance ()

Static Public Member Functions

static void Create (TInstanceRenderable **instanceRenderable)

Protected Member Functions

 TInstanceRenderable ()
 TInstanceRenderable (I3DShInstance *instance)
virtual MCCOMErr MCCOMAPI SelfGetFlatennedTexturesAsync (uint32 uvSpaceID, UVMaps &maps, TextureAvailableProc proc, void *privData, TMCRealRect *range=nil) const
virtual MCCOMErr MCCOMAPI SelfGetShadingApproximation (TShadingApproximation &shadingApprox, uint32 uvSpaceID) const

Private Attributes

TRenderableFlags fFlags
I3DShInstance * fInstance

Constructor & Destructor Documentation

TInstanceRenderable::TInstanceRenderable (   )  [protected]
 

TInstanceRenderable::TInstanceRenderable (  I3DShInstance *  instance  )  [protected]
 


Member Function Documentation

static void TInstanceRenderable::Create (  TInstanceRenderable **  instanceRenderable  )  [static]
 

virtual void MCCOMAPI TInstanceRenderable::GetBoundingBox (  TBBox3D &  bb  )  [virtual]
 

Returns the bounding box of the renderable in local coordinates (for triangle meshes).

Parameters:
bb The bounding box that is returned.

Reimplemented from TCountedRenderable.

MCCOMErr MCCOMAPI TInstanceRenderable::GetFMesh (  real  lod,
FacetMesh **  amesh
)  [virtual]
 

Returns a pointer to the triangle mesh contained in this renderable (see GetGeometryType()).

Parameters:
lod The lod that is requested.
amesh A pointer to the mesh that is returned.

Reimplemented from TCountedRenderable.

I3DShRenderable::EType MCCOMAPI TInstanceRenderable::GetGeometryType (   )  const [virtual]
 

Returns the type of geometry that should be rendered (points, segments or triangles...)

Reimplemented from TCountedRenderable.

I3DShInstance* MCCOMAPI TInstanceRenderable::GetInstance (   )  [inline]
 

MCCOMErr MCCOMAPI TInstanceRenderable::GetInstance (  I3DShInstance **  instance  )  [inline, virtual]
 

Returns a pointer to the instance that corresponds to the renderable. Note that it can be NULL if the renderable has no instance

Parameters:
instance A pointer to the instance.

Reimplemented from TCountedRenderable.

TRenderableFlags MCCOMAPI TInstanceRenderable::GetRenderableFlags (   )  const [virtual]
 

Returns the flags associated with this renderable. See TRenderableFlags for more info.

Reimplemented from TCountedRenderable.

uint32 MCCOMAPI TInstanceRenderable::GetUVSpaceCount (   )  [virtual]
 

Returns the number of shading domaine (uv space) on the primitive.

Reimplemented from TCountedRenderable.

virtual MCCOMErr MCCOMAPI TInstanceRenderable::SelfGetFlatennedTexturesAsync (  uint32  uvSpaceID,
UVMaps &  maps,
TextureAvailableProc  proc,
void *  privData,
TMCRealRect *  range = nil
)  const [protected, virtual]
 

Reimplemented from TCountedRenderable.

virtual MCCOMErr MCCOMAPI TInstanceRenderable::SelfGetShadingApproximation (  TShadingApproximation &  shadingApprox,
uint32  uvSpaceID
)  const [protected, virtual]
 

Reimplemented from TCountedRenderable.

void TInstanceRenderable::SetInstance (  I3DShInstance *  instance  ) 
 

MCCOMErr MCCOMAPI TInstanceRenderable::SetRenderableFlags (  const TRenderableFlags  flags  )  [inline, virtual]
 

Sets the flags associated with this renderable.

Parameters:
flags The flags.

Reimplemented from TCountedRenderable.


Member Data Documentation

TRenderableFlags TInstanceRenderable::fFlags [private]
 

I3DShInstance* TInstanceRenderable::fInstance [private]
 


The documentation for this class was generated from the following file:
Generated on Wed Dec 7 14:27:45 2005 for Carrara SDK Doc by  doxygen 1.4.5